Provide a way to get at text/comment nodes in parserTest changes.

Change-Id: Iae8b68d0af1bdd1130cd5f9fd5453448bdb86769