fix tests to account for https://github.com/scrapy/w3lib/pull/23

See https://github.com/scrapy/w3lib/pull/23