Filter out meaningless text nodes from unit tests

Trying to write any operation tests with large XML snippets is frustrating as you must flatten the whole snippet so that the unit test comparison code won't throw false negatives due to any white space used to format snippet.

This PR modifies the unit test runner to filter out these text nodes so that the comparisons don't fail due to formatting differences in the snippets being compared.
I did not see that function before. However is it necessary for me to use that method? For the purposes of the test code that parses the XML I don't think it needs to be aware of what is actually inside a paragraph element hence I went with a simpler check.