fix problems in tests caused by https://github.com/cheeriojs/cheerio/pull/584