Simplified MetricsTests.cs