add test for chart