Tests failed in Windows. Changed test to be platform independent.

This change fixes failing tests when building on Windows 7.