Reimplement set 1 challenges as unit tests.