fix tests to account for https://github.com/scrapy/w3lib/pull/23
Merge pull request #812 from kmike/fix-w3lib-trunk

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