product test refactor