Added a test of what happens when exhausting the heap while putting
values into a map.