Improve XmlNodeExtensions unit tests

This was suggested in a code review comment.