Added test for text replacing.