added NaN test for cholesky_decompose