Add several unit tests for WorkflowDefinitionScanner