Fixed a bug in the deprecation tests