Fix replay.gateway, add a test for china, and fix the china gateway.