Test for DocumentFactoryResolver