Add the beginnings of a test suite and move a Mixmaster function into the correct place.