Validation for product and tests for it