Creates and deletes tmp directory before and after tests.