fix simple workflow test, fix bug in workflow