Use tearDown() in unit tests to clean up all created files
Right now we're manually removing the files we create, but we don't manage to find and remove all of them. It would be better to have a more thorough cleanup after tests.
@atagar pointed out the use of the tearDown function in !13 (comment 2727321)