Add a few automated tests

Run with npm test

A handful of tests. Simple framework for testing in place so
more can be added later.