Add unit tests and travis support.
Merge pull request #128 from cirosantilli/unit-test

Add unit tests and travis support.