Quote: add tests for 'replace'