bug fix for model creation, test added to productController