Added tests for deprecation. Deprecation logs are set to debug by default so users are not overwhelmed by deprecation warning.