added unit tests for products model