The problem is windows. That was my original thought too, so now I create a temporary folder inside the test folder and remove it afterwards.