ElasticSearch tests fix