Add a little test framework, and a test case