Various fixes for auth tests with old mongos versions.