Adds a test for the MainController