modify autotest xCATreg code