fixed errors associated with test of Product model