added tests for valid input for both absolute and percentage discounts.