CRM-14919 fix api test failures and notice fixes

----------------------------------------
* CRM-14919: Add icon for related contact in listing in the relationship tab
  https://issues.civicrm.org/jira/browse/CRM-14919
Merge pull request #3584 from NileemaJadhav/CRM-master

CRM-14919 fix api test failures and notice fixes