Add test for identifying deprecated method