Fixed login tests