Tests for authentication.