Closes issue #1919. Adding unit tests for the line chart