Add specs for render_attribute; rename display_as_string to display_string