added MainCtrl tests with mock service