No ticket: improve replaceWith testing