func test for auth