Correct error in addPreviouslyRefundedAmount

- correct logic
- create test
Try and finally are not required any more.  Tests properly clean up after themselves - if setup properly, which this one is.