fix a test for old lxml versions (no pretty_print option), see
421d8971666 and 1dc4f92