Add tests for 'deprecated' decorator with functions and methods.
Flake8, style.