These few cases were creating subnodes that did
not have parent nodes assigned. This caused the mutators
and trimming functions to create invalid trees because
they would assume that a node way down in the tree was
a valid "root node" and use it to replace a whole tree.
These few cases were creating subnodes that did not have parent nodes assigned. This caused the mutators and trimming functions to create invalid trees because they would assume that a node way down in the tree was a valid "root node" and use it to replace a whole tree.