[Metrics] Add test for the new metrics architecture

Bug: 336995788

Change-Id: I4d1b128d5ac95a8f4c8f3e899f59d4272d3ada2b
2 files changed