Test main controller.