attribute test. Take a look at attribute.cpp for details.