Add a test of what happens when you exhaust the heap while adding elements to a map.