fix: tests for viewCtrl