tests: fix the unit tests on Windows