tests for sort_heap