Fix tests, upgrade all packages.