work around lxml platform inconsistency in output formatting for test