chore(diagram/tree): add additional testcases

- add further testcases to test the selection of a bpmn element or a node

related to CAM-719
chore(test): Add tests for activityInstanceService

- add some test cases to test the behavior of the activity instance
  service
- add documentation to activity instance service

related to CAM-719