Add a simple test for ray-segment intersection.