correct logic in angular HomeCtrl test