Fix test related to relations.