Add tests and Travis config