infrastructure for unit testing + simple unit tests
Merge pull request #2 from rmohr/master

unit test infrastructure