Update ActiveModel::Errors.has_key? test