nt = i;
    fragment.appendChild(s);
  }
  rere.root.appendChild(fragment);
  var added = rere.root.querySelectorAll('span');
  assert.equal(added.length, childCount);
  for (i=0; i < added.length; i++) {
    rere.root.removeChild(added[i]);
  }
  assert.equal(rere.root.querySelectorAll('span').length, 0);
});

test('insertBefore (fragment, local)', function() {
  var rere = testElement.root.querySelector('x-rereproject');
  var fragment = document.createDocumentFragment();
  var childCount = 5;
  for (var 