chore(engine): extract cmmn test helper methods
feat(engine): add HistoricCaseInstance to history

related to #CAM-2839