test fixes for replicasets