Fix build and update testmain for test results.
Merge pull request #5 from lordio/fix/mac-build

Fix build and update testmain for test results.