Tests for MainController