upgrade fix test_login