Add tests and TravisCI