Fix test dealing with ActiveRecord::Relation type.