Added tests for the statistical functions.