Add some more tests.

Fixed a bug.  The wonders of testing.