Tests for the main controller.