Fixed error on installation from new primary key.
Fix old dependencies in tests.