Added failing test for properly handling reassigned children.
New TreeNode#parent= passes previously failing test from previous commit