trying to mock a chart to test the parent methods