Fixed remaining tests that fails on windows.