testing dependency injection