Fix domain cache tests