CRM-12412 - Implemented unit tests for REST interface authorization

----------------------------------------
* CRM-12412: Implement unit tests for REST interface
  http://issues.civicrm.org/jira/browse/CRM-12412