Fixed bug in StructuredLabels

* Using ```m_labels->set_element()``` instead of ```m_element->insert_element()```.
* Added unit test.