Add test case for BatchMetricsImpl