Fixing LoginCtrl tests