testing deletion of segment