Use "done" helper to marke the process finished
Check if output exists
Clean output directory before running the test