add: test codes for peer