Fixed test case for ElasticSearch