Add tests for succeeding and failing authentication.