Don't add an XML declaration while pretty-printing the XML if they didn't send an XML declaration. Adjust tests accordingly.