Update packages and fix some tests.