add attrDef to write-lock whitelist, test attributes in debug