Integration test for peer handshake