Test cases for MainController
Test cases for factories