Fix `editor.selectedContainer`

This tests both `editor.deselect()` and `editor.hasSelection()`. Maybe testing one using the other is not smart...