Intersect for sorted sets, upgraded tests