Added test for testing generated names for pasted element copies and that the new names is registered in the correct namescope.