Expanded piechart tests and added classes needed for tests and for API hooks to pie chart component