fixed test_authentication