MDL-58596 core_stats: unit test for stats_get_base_weekly