Moved the directory creation to /tmp, and removed the directories after the tests.