added 3 more test cases for the intersect algorithm