Test dependency injection