Testcase for filter with broadcast variable

See #548