Added test for "replace" operation.