Added function expect_matrix_eq_or_both_nan
added NaN test for assign
Fix multiply_test