Make some test windows friendly.

Some test doesn't pass on windows. I've fixed it.