Add tests for CommonCon service and MainCtrl.