hlist and resource is move to kernel test code