added NaN test for mdivide_right