Factored out the test `Doc` from NameServer