add simple testing framework
fix windows build
Merge pull request #58 from thinxer/test

Add test framework