Initial work on unit tests.