Added unit tests for GenerateChart() method