Initial fix for admin authentication in tests.