Updated product/package manager tests

They depended on old functionality, as now the DBObjectGateway sets the
ID of new objects.