Test improvements for the binary heap.