Added some preliminary unit tests.