added test for accessing xml attributes