Added UnitTest in Replace.t.