avoid some deprecation warnings when running tests