Add validation for product model and update tests