core: Fix tests using invalid hostmask.