Integrate with Travis CI
Add test for issue #4