Added pie chart and implemented basic rspec controller tests