Add unit test for get_purchase_link by SKU

Issue #2122