Working out authentication tests.