unit tests for the line chart
+ small changes