Countintersections now passes tests
small changes