;
    assert.equal(translate('foo', 'quux', 'foo.bar.baz'),
                 'quux.bar.baz');
    assert.equal(translate('foo.bar', 'quux', 'foo.bar.baz'),
                 'quux.baz');
  });

  test('matches()', function() {
    assert.equal(matches('foo.bar','foo'),          true);
    assert.equal(matches('foo.bar','foo.bar'),      true);
    assert.equal(matches('foo.bar','foo.bar.baz'),  true);
    assert.equal(matches('foo.bar','fooz'),         false);
    assert.equal(matches('foo.bar','foo.baz'),   