Reimplemented complete set 2 challenges as unit tests.