test CopyPasteState