add test for script reset during broadcast and wait loop