Added test for Edit#_replace