fix elasticsearch test
Merge pull request #1257 from RoanKanninga/master

fix elasticsearch test