Add missing test cases for `attribute_method?`