Added check for deprecated setting

Avoids adding the method as deprecated if the value of the deprecated setting is false
Fixed tests for deprecated indicator
Merge pull request #191 from iambrosi/patch-1

Added check for deprecated setting