Fixing broken elasticsearch test