restore runtime exec test (#21591)
test for 2 arg exec case
remove casts