Add tests for coupon API