Use standard activerecord syntax for digest_mail query and remove deprecation message from tests