Packagemanager test1 & fixes