Fix test to exclude old months and days from the statistics builder. Thanks to ammdispose for the patch.