Add API unit-level tests.
Add API unit-level tests.

Previous API had no tests, but I didn't think they needed any as I'd be
testing the compiler at that point.  However, over time, features
accreted, and the time has come for tests to be written.

Many thanks to Mark Peek for this contribution!

racker/perigee