Extra unit tests and extra constructor for Line