Fix ElasticSearch tests.