Add test and solution for intersects