Modify tests to work on Windows