add_element belongs to the XML class not the RSpec class