Fix logic fail on DO_LOOP mode

Also remove broken test suite
DO_LOOP mode wasn't checking out or cleaning the tree between runs.