Add test for deprecation warning for passing an AR object to `find`.
Merge pull request #14376 from laurocaetano/test-deprecation-warning-for-find

Add test for deprecation warning for passing an AR object to `find`.