l.setup();
      done();
    });
  });

  teardown(function() {
    el.teardown();
    document.body.removeChild(el);
  });

  test('document listener works in SD polyfill', function() {
    var ev = new CustomEvent('mousedown', {bubbles: true, composed: true});
    el.dispatchEvent(ev);
    assert.equal(el.stream.length, 1);
  });
});

suite('Reference Cleanup', function() {
  var el;

  setup(function(done) {
    el = document.createElement('x-buttons');
    document.body.appendChild(el);
    afterNextRen