add test case and fix for bug with broadcast loop