added NaN test for mdivide_left_spd