Fixed HTML tests in the case that lxml is not available as a backend