Adding batched least squares test