Add unit tests for heaps.