added NaN test for check_consistent_sizes
added NaN test for check_equal