BUG: fix platform tests on windows.

Fix tests on windows.