test for successful authentication