In test_heap_sort() assert expected_heap_end_index = -1