Test case for HHH-9343 and fix for HHH-8397 test failure on Windows