fixes contribution page dashboard can't display error.
Regenerate test, move bin script to better location.
Move casperjs to correct working directory.
Change ci to d7. [skip ci]
fixes CRM-12003, valid email address issue.
refs #12661, Email failed when contact have 2 same email, and others have no email.
refs #12672 - porting auto test function from civicrm