Fixing workflow execution by not prematurely returning; adding more unit tests for workflow execution.