Check if child node is correctly assigned to parent in parse tree.