test for non definite matrices was erroneous in chol