Regression Analysis test code