al2 = rere.root.querySelector('#local2');
  rere.root.removeChild(local);
  rere.root.removeChild(local2);
  assert.equal(rere.root.querySelectorAll('#local').length, 0);
});

test('localDom.insertBefore first element results in minimal change', function() {
  var children = testElement.root.childNodes;
  var rere = testElement.root.querySelector('x-rereproject');
  assert.equal(rere.attachedCount, 1);
  var s = document.createElement('span');
  s.id = 'local-first';
  s.textContent = 'Local First';
  testE