add test for metric manager