Add tests and travis spec