Add some debugging helpers and two tests that currently fail.
Use CIRCLEQ to track tasks instead of a hand-rolled list.