first try at tests
Merge pull request #12 from hayd/add_tests

Start towards tests