Test the main controller