fix broker unit testcase