Add unittest for Workflow.