Fix eqv w.r.t. NaN values for issue #129
Add eqv test for NaNs