testing the removal of a trailing span