Add unit test to the MainCtrl