Extended the peer session handling to support a 'loopback' test session.