Test for attribute

Test an element for:

* Attribute existence
* Attribute value