var interpolation in item_has_attribute 

Added double quotes around #{item} in  item_has_attribute to allow for variable interpolation. This is related to issue #451