Fixed 'Race condition in test LocalVarTest.testWorkflow2'