Add NodeIterator tests

New and updated to address review comments, including being based on the just-updated spec.