Added unit test for multiple attributes for same element
Fixed a bug where multiple attributes were not handled