Unit tests for chart generation