Test attribute value properly