fix Deprecation Warnings in the test suite