Added tests and Travis configuration.
Merge pull request #5 from dblock/tests

Added tests and Travis configuration.