add unit-test for MainCtrl