Deprecation warnings tests