Add test for refund of processor
Fix prorated refund rate bug (the refund rate was inverted)