a test for replaced text