D: Fix tests on Windows