Remove logging from tests
Fix deprecations