Add test framework
Merge pull request #6 from seryl/add_tests

Add test framework