test attribute-based model