fix elasticsearch test