unit tests for dependency injection extension classes