check whether the relationships returned correctly