Added a test for intersect