Add test for discount.