If you're just testing the `HtmlDescriptor` to/from xml, wouldn't it be better to test it in isolation? You should just be able to craft the xml string that you want to start with, feed it to `from_xml`, write it back with `to_xml`, and then verify the output.