oo'), 'foo');
    assert.equal(root('foo.bar'), 'foo');
  });

  test('isDeep()', function() {
    assert.equal(isDeep('foo'), false);
    assert.equal(isDeep('foo.bar'), true);
  });

  test('isAncestor()', function() {
    assert.equal(isAncestor('foo.bar', 'foo'),          true);

    assert.equal(isAncestor('foo.bar', 'foo.bar'),      false);
    assert.equal(isAncestor('foo.bar', 'foo.baz'),      false);
    assert.equal(isAncestor('foo.bar', 'fooz'),         false);
    assert.equal(isAncestor('foo.ba