Add unit test framework; basic tests.