Added testReplacement.