tests: Fixed broken test_auth.py