extract net code into hcl::net
rename net test
net: cleanup