add hlink() and a test for it