Add more tests to attr_is.
Merge pull request #1333 from Ms2ger/attr_is

Add more tests to attr_is.