Update the tests to pass with Elasticsearch 1.x