Make tests throw exception, add travis-ci integration.

Relates to #23.
Fix a typo.
Merge pull request #24 from eiriksm/travis

Travis integration