move broker test simulating code to dztester.c