Add tests. Add travis yml.