Rename hv variable and add test for add_info_from_hv