Add deprecation tests