fixing tests to unlink tmp files