added unit tests for product model