Fix failing tests on some windows environments

For example, TestUtil.isWindows() returns false in windows 8, and the tests might fail.
The condition is fixed to correctly handle environments, especially for "Windows 8".