transaction tests and refund tests