def test_auth works