PatternReplaceFormatter tests