migrating tests to use injector instead of direct instantiation