Added a function to test built-in regression