CRM-13296 membership api enotice fix & tests