Fix issues in peerconnection with unit/integration tests.