refactor product distribution test