TEST: fix unit test for auth