add dependency injection tests