Add test checking that selection is reset when deleting the selected item or any item before, but not after, it. Also explicitly document this behaviour.
Add test checking that selection is reset when deleting the selected item or any item before, but not after, it. Also explicitly document this behaviour.