ar slot = ShadyDOM.wrap(ShadyDOM.wrap(d).shadowRoot).firstChild;
    var slotChangeFired = false;
    ShadyDOM.wrap(slot).addEventListener('slotchange', function(e) {
      slotChangeFired = true;
    });
    var e = document.createElement('div');
    ShadyDOM.wrap(d).appendChild(e);
    afterFlush(function() {
      assert.isTrue(slotChangeFired, 'slotchange did not fire');
      ShadyDOM.wrap(d).removeChild(e);
      slotChangeFired = false;
      afterFlush(function() {
        assert.isTrue(slotChangeFi