Update the tests to pass with Elasticsearch 1.x

This patch makes the tests pass with Elasticsearch-1.0.1
I hope this helps!