Unittest of work flow.