added some tests for broker and fixed issue with holding queue