added test for set_regex