Fix elasticsearch test.