fixed Windows bugs in tests