First take at a unit test

Wrote a function which is a first run at unit testing.  Seems to work.