Fixed a test that appeared to be expecting wrong behavior when replace is set to false.