Added test for authentication