wrapped heap entry and added output for testing