Fix basic authentication in tests