adds intersections and accompanying tests