SERVER-7174: cleanup tests, + use assert.docEq for doc compares
SERVER-10085 do not hold bgsync mutex while waiting for the network