Fix test bugs for ADDomainExtension tests.