Yet more coverage -- still missing refund

refund is difficult to cover since its implementation is incomplete.

The only code not covered is related to refund or test code.