Test replication of self-referencing nodes (tree structures)