Introduce serialization test helper method
Trim potential trailing forward slashes from Xml namespaces

Fix #1769
Merge pull request #1770 from nulltoken/ntk/fix/1769

Trim potential trailing forward slashes from Xml namespaces