Unit test and fix for extra_prod_details=None bug