fix cleanup of /tmp in tests

This PR fixes the cleanup of the items created in /tmp during the execution of the tests.