Add test for PeriodicMetrics