partial impl of isMatch contains and restricts
add test on attribute type restrictor