added err_regex to arity
fixed Ruby tests
fixed unbound function error message