added test case for peer connection