fix the gateway test on windows