Fixed the statistics tests