Test for DeprecationWarning