tests added for onPeerConnected and onPeerDisconnected.