Added unit tests for products model