[minor] add list of attributes per element
[test] attribute list
[minor] add global attributes and fix silly tests, fixes #27