Adding more complete authentication tests.