Fix headnode_show on uncreated headnode

Also test headnode_show