fix #25823 removal of ties
Added removal of ties that do not have an end element when pasted.
Fixed test scores for tie copying.