updated refund and buy test cases