Check that rate is greater than 0
Reenable just test_get_discounted_amount(). #2302