Update dependency and fix tests.