added NaN test for check_cholesky_factor