fix testcase for MAGN-3399, t ocatch exception if it throws error.
test/Libraries/WorlflowTests/ComplexTests.cs