test: Do not take NaNs into account if ref version < 13.02