Add unit tests for the menuCtrl and headerCtrl and extend appCtrl tests