basic test tidy up
CRM-15550 adding a test shows only one instance of checking  has been updated
CRM-15550 add test to check for extraneous emails
remove redundant variables
Merge pull request #4646 from eileenmcnaughton/action-test

CRM-15550 test + test error fix