added test for intersection