Added authentication tests.