New test with least squares