unit testing dependency injection