Fixes DomainHooks test.