TST: Test deprecation code

Add tests for routines the show deprecation message