fix tests to succeed with 1.4.0.Beta1

Tests most probably failed because of #5190 (see
https://github.com/elasticsearch/elasticsearch/issues/5190).
I'm not entirely sure why this succeeds in 1.3.4 but fails with
1.4.0.Beta1 though.