Initial work on unit testing.