CRM-14951 test for numterms not applied
CRM-14951 fix for number of terms on IPN
CRM-14950 exit on completetransaction is already completed
Merge pull request #3614 from eileenmcnaughton/CRM-14951

CRM-14951 test & fix incorrect number of terms on IPN update of memberships