normalize xml before comparison in tests

Credit to @millerdev