refactors product validation tests