[#75119004] Add tests for replace operation.