Add coverage for recalculate_stats