updated productrepository and test class