restored unit test authentication