Fix unit test build

Fixes all the tests that are currently failing, and makes the default build fail if unit tests don't pass.


This buffer copying makes me squirm, too. This whole loop should be rewritten to use a fixed-size buffer, and if `PrintStream` can’t handle “only write the first _x_ chars of this array,” we should use something else here.