Tweak test_edd_get_discount_by() for #2302
Fix unit tests for #2302