Make sure passing in replace works