Unit test for contribution stats