Fixed Heapsort test