backend: Document view.
backend: Add test for OnSelectionModified + fixed issue spotted during
when documenting the code.