fixed Windows bugs in tests (closes #447)