Statisticskey now have have equals, hashcode and toString. Tests fixed