Fix assertions in AR::TestCase::AttributeMethodsTest

This test has always been green because it uses "assert" and the first
argument is an truthy class/object.
Merge pull request #16998 from yuki24/fix-false-assertion

Fix false assertions in AR::TestCase::AttributeMethodsTest