Fix HIP record unpacking

I thought the unpacking of a slice of domains looked odd so I created a test for the HIP record and then kind of played whack-a-mole. Hence might not be too well thought out.