initial pass at unit tests.