fix broken unit tests after product-api endpoint improvements