Added EzControllerTest and modified controller class to enable testing