CRM-15542 - Unit test.

----------------------------------------
* CRM-15542: The api ignores option_group_id when creating a new custom_field.
  https://issues.civicrm.org/jira/browse/CRM-15542
Merge pull request #4497 from johanv/CRM-15542-unit_test

CRM-15542 - Unit test.