Automated tests.
Merge pull request #15 from cirosantilli/add-tests

Automated tests. Thanks to @cirosantilli