Use new release candidate in tests.
Clean up deprecation warnings and remove obsolete code.