Test added

Added test for chart function
Corrected label for test