AttributeError test