Tests for MainCtrl