update deprecation warnings for tests