Fix TestAuthModeAlwaysAllow.

Fix #2137