Add test for authentication