TestRTC: move connectivity related methods under call.js