Add unit test for intersect
Add more unit tests for intersect