Added test for replace_text command