adding line intersection tests