This test checks that the NodeIterator and TreeWalker functions do not go past the root element that they are supposed to stay within.