Move calc_mean to test_statistics