Fixed bug in HPD in Node.summary, and added test to detect regression