[SPARK-20764][ML][PYSPARK][FOLLOWUP] Fix visibility discrepancy with numInstances and degreesOfFreedom in LR and GLR - Python version
[SPARK-20764][ML][PYSPARK][FOLLOWUP] Fix visibility discrepancy with numInstances and degreesOfFreedom in LR and GLR - Python version

## What changes were proposed in this pull request?
Add test cases for PR-18062

## How was this patch tested?
The existing UT

Author: Peng <peng.meng@intel.com>

Closes #18068 from mpjlu/moreTest.

(cherry picked from commit 9afcf127d31b5477a539dde6e5f01861532a1c4c)
Signed-off-by: Yanbo Liang <452ae006f36be6c70342f33f64bb6f6eb552689c@gmail.com>

jlopezmalla/spark,apache-spark-on-k8s/spark,jlopezmalla/spark,apache-spark-on-k8s/spark,publicRoman/spark,publicRoman/spark,jlopezmalla/spark,publicRoman/spark,jlopezmalla/spark,publicRoman/spark,apache-spark-on-k8s/spark,jlopezmalla/spark,publicRoman/spark,apache-spark-on-k8s/spark,apache-spark-on-k8s/spark,publicRoman/spark,jlopezmalla/spark,jlopezmalla/spark,apache-spark-on-k8s/spark,publicRoman/spark,apache-spark-on-k8s/spark