testBrokenEvent() {
    mockHTML5LocalStorageCtor().$returns(mockHtml5LocalStorage);
    const fn = mockControl.createFunctionMock();
    mockControl.$replayAll();

    broadcastPubSub = new BroadcastPubSub();
    log.setLevel(broadcastPubSub.logger_, Level.OFF);
    broadcastPubSub.subscribe('someTopic', fn);

    if (!isIe8) {
      const event = new GoogTestingEvent('storage', window);
      /**
       * @suppress {strictMissingProperties} suppression added to enable type
       * checking
       */
      event.key = 'FooBarBaz';
      /**
       * @suppress {strictMissingProperties} suppression added to enable type
       * checking
       */
      event.newValue = googJson.serialize({'keyby': 'word'});
      events.fireBrowserEvent(event);
    } else {
      /** @suppress {visibility} suppression added to enable type checking */
      const uniqueKey = BroadcastPubSub.IE8_EVENTS_KEY_PREFIX_ + '1234567890';
      // This will cause an event.
      mockHtml5LocalStorage.set(uniqueKey, 'Toothpaste!');
    }
    mockClock.tick();

    broadcastPubSub.dispose();
    mockControl.$verifyAll();
  }
Test response to bad localStorage data.
@suppress {checkTypes,visibility} suppression added to enable type checking