Initial happy-path unit tests for the clean task. Relates to #1458