CFAttributedStringReplaceAttributedString and immutable tests