Validations and testing

Added validations to the Product model
Added some tests for the Product model