Updated #14544 to work with `activerecord-deprecated_finders`

Simply used older style of lambda definitions within a test.
Fixes Issue #13466. See #14544 for complete description.

Conflicts:
	activerecord/CHANGELOG.md
	activerecord/lib/active_record/scoping/named.rb
Is not better to check if it responds to `exec_or_call`?