Fix `editor.selectedContainer`

Added this test for whatever use it has.