fix and unit test get_product_id()