unit tests for the pie chart