Fix revert test fail on Windows