fix deprecation warnings in the test suite