adding auth test code