Refactor connection recovery test

Mimic BrokerTestCase but override setUp and tearDown
to do exactly what recovery tests need.