added test for authentication