fixed broken test when running tests against a replica set.