Added validations for products and necessary tests