Add and update test cases of cloneEveryNodes() and setDataToElement()