A few minor corrections to the unit testing framework.
Merge pull request #80 from hyanwong/unittest_corrections

A few minor corrections to the unit testing framework.