normalize xml before comparison in tests