BinaryHeap: moved test code to new class