Update to new libs, fix deprecation warnings in tests.