Added test documentation for deprecationwarning