Test root nodes and child nodes separately.