dependency injection tests