End-to-end refunding with tests