Fixed bug with and added tests for behavior of clicking on unselectable item

Now clicking an unselectable item will no longer deselect other selected items.