tested dependency injection