test data factory: fix wrong primary field for contactemail
add another test lead to meet criteria
cleanup lines
test data: for each new lead, check to see if it has a primary flag in any existing contactemail records. if it does, set the existing contact's name as the error message for now. if it doesn't, do a system assert and move on.
test check lead: try to insert the leads
checklead: find all email objects that match any of the lead email addresses we're trying to add
checklead: for each lead, check if any of the matching emails are primary for another contact. if they are, get the id and set it as the error. if not, keep going.
meta