Workflow engine test fix

Fixed the workflow tests. Also added a test to ensure all rolePriorities have a workflow that accepts them