Add test case to verify that folding a subtree will not destroy to content of