fixed and implemented tests / implementation for distance of point from line