unit test fixes on travis

* ElasticSearchRequest was using [] notation for arrays :/
* Re.php was using Set vs Hash lib