Improve login tests reability.