test for onPeerCapabilitiesChanged added.