add test case for peer