hv_xen: Refactor getting node information, add tests