Now that some of the code has been split into a private shared library, we should start adding unit tests.