fix broadcast wait loop testcase