Test improvements, minor fix on mailing API  (Closes CRM-13512)