CRM-14778 in order to add unit test separate out function that sets some amount params
CRM-14778 remove unused var & move simple assignments to be at start of function
enotice fix
CRM-14778 add preliminary unit test on postProcess function
Merge pull request #3423 from eileenmcnaughton/CRM-14778

CRM-14778 add unit test to help with testing changes