add integration test for refund