upgrade Discount to 2.1.7 and add more test. close #17