Hardening windows return code tests

They were failing on some test runs randomly.