Add tests for the Line class