Update dependencies

This fixes the depcrecation warnings in tests.