Make test work with -Pconnect

The call to waitOnReplicationPeerStopped is necessary because it also unregister the mbean of this replication source, which hbase doesn't do by default, and otherwise the test fails on second run in connect mode.