Add tests for coupon API

Hi, thanks for writing this lib!
I have seen there are no tests for the coupon API and added some.