Adding testing for line and bar graphs'