Add tests and TravisCI config