Add a unit test for authentication.