Add tests for createBarChart and createPieChart

-Fix formatting in NewPieChartPanel.java and NewBarChartPanel.java