add tests for appCtrl