tests for broker