moved the test broker in its own class