Make tests pass with lxml and pycurl installed.
Merge pull request #7 from thomir/fix-tests

Make tests pass with lxml and pycurl installed.

With thanks to @thomir