Add a test to verify servers waitFor* methods.

Verify that threads monitoring waitForBrokeringToStart() or
waitForBrokeringToFinish() don't hang indefinitely.