Injecting in tests