This tests that we do not crash while deleting the selection.