[BUG #7358] Added a unit test to show the issue with nested DOM elements which are cloned.