Add a simple little unit test, and fix the failures it found.