Add unit test for ContributionStatistics