Test and improve pasting