TST: Add deprecation tests