test attr.flags, not just attr