This rewrite is because `.selected`—that is now `.selContainer`—had its behavior changed.

The little game that I'm doing with `expect` is necessary in order to keep changes localized to this function.