Tightened up the test cases and added a simple build file.