Convert some of the old unittests.