fix cleanup of /tmp in tests

This PR fixes the cleanup of the items created in /tmp during the execution of the tests.
For clarity, makes sense to update the comment as well.