[unit-tests] fix unit-tests on Windows.