Added new method 'get_element_id' and new tests

Change-Id: Id74bd36f17494e4252531fe72833bb9283fa772a