Store rating history for visualizations
Add more tests