Test for MainController