CRM-14758 fixes for 4.4

----------------------------------------
* CRM-14758: API ( contact, create ) does not always create related membership
  https://issues.civicrm.org/jira/browse/CRM-14758
first tests are exactly where you should cause problems :-) In fact I think problems hit on tests should always be treated with sympathy :-)