metrics tests & global configuration fix