aligned an UT in test_authentication.py to latest implemementation