fixed bug with test for WorkPageCtrl