Add test cases.
Add Travis CI configuration.