add test when an entity is clicked and selected in the entities fragment