Fixed failing tests and re-factored XML string comparision

Fixed the failing test CoreTests.CheckMessageBodyXmlWithAttributes3
Added a string extension method to the test project `AsXmlSanitized`, which compares two given xml strings ignoring the white spaces and new line characters.