added test for accessing xml attributes

Closes #1328