Improve login tests a bit