Add tests and travis config