Move tests to text_element_spec