Add tests around deprecation notices