added failing NaN test for check_pos_definite
fixed check_pos_definite for NaN values