format xml strings in test
refactor normalizer