Testing around replica set modes.

This is for cluster monitoring, also moves scanning a cluster and checking a server synchronously to test only environment for us - these methods are not available outside of our test suite.