Added MainControllerTest.