add testcase for custom statistic functions