added test for replace_regex()