lib/net_setup/core: remove test code