Improvements to tests, and implemented contains() for a Line.