Test for insert/extract_element