update the unit test to accommodate the controller starting to use dependency injection