add str test for metrics