Add test for document node length