fixed the test of elasticsearch