Tests for intertercepts

Including tests for line intertercepts - not all working yet