Add tests for authentication