Added tests for dup() trees.