Clean test output before running test

If the output is not cleaner there is the risk of not catching a failed test
due to left-overs from a previous one.