Add test framework and some tests.