shadow-dom: Refine a test for document's DOM tree accessors.

This change updates an existing test that checks whether document's DOM tree
accessors return nodes in a shadow tree or not. This change also adds
an extensive amount of comments that explain which specification each accessor
belongs to.

The test file was renamed to dom-tree-accessors-001.html.