Add support for Heap.
Add integration tests for Heap.