Improve the testing of the complete_ui

Clean all temporary files, such that
tests can run without leaving a trace.