Fixed not removing temp files during tests

Removing temp files generated during tests. Today I had 244 such files in /tmp dir.