And recently we've fires a separate event called `bluetoothprofileconnectionchange` when the state of a profile changes, we should also add a event listener like this: `window.addEventListener('bluetoothprofileconnectionchange')` and do the following checks in the handler: `assert.equal(event.detail.name, Bluetooth.Profiles.HFP),  `assert.isTrue(event.detail.connected)`.