Add tests and Travis CI configuration.
Add Travis CI badge to README.