tests for product model