Test using assertXmlStringEqualsXmlString instead of simple string comparison

I noticed a silly error in the Travis tests. This should fix it. Instead of directly comparing two strings, we can compare two XmlStrings so that insignificant differences in xml structure will not cause a failure.