Update dependencies and fix tests.