Added unit test framework and simple tests.