Fix regression in close_replace_key test created by #1245.
Merge pull request #1249 from jterrace/fix-clone-replace-key-test

Fix regression in close_replace_key test created by #1245.