CFY-642 refactored rest service unit tests
Merge remote-tracking branch 'origin/feature/CFY-642-workflow-framework' into feature/CFY-642-workflow-framework