Added validations and tests for product controller and model