Add unit tests for :deprecations linter