Unit tests for DefaultWorkflow and WorkflowFactory