Hid testing code