login tests refactored