Testing replaceText with groups