replicate commands for mongo and tests