Fix test tearDown on Windows