(both exec and spawn modes) and add test for it (both exec and spawn) also extra test for trigger node.