Fix test_get_purchase_link(). #2302
Re-enable test_get_discounted_amount(). #2302