fix bug in unit test code

so that we correctly capture test results
Merge pull request #75 from bodepd/fix_unit_test_bug

fix bug in unit test code