more changes to refund code, added RefundTest class