Added tests for the line class