added MainControllerTest