added NaN test for check_consistent_size