test('removing a listener should work', function (t) {
  var node = createNode('', {}, function () {}, true)
  node.on('contextChange', handler)
  node.off('contextChange', handler)
  t.equals(node.listener, undefined)