CRM-12976 - CRM_Core_DAOTest - Add tests for composeQuery bugs

----------------------------------------
* CRM-12976: In field of type Notes - TextArea, data Input of a $  (dollar sign) followed by one or two digits between 1 and 9 will result in deletion of the numbers.
  http://issues.civicrm.org/jira/browse/CRM-12976