Refined tests to work under Windows.