Add tests; fix bugs that were found.
Add travis configuration.