Fix assertTempIsClean.
Refactor testcase and mockup.
Fix cleaning of temp folder.
Release 0.14.0.
Add docstring.
[#1402] Fix assertTempIsClean.