added a test case for peer manager