Add test case for NetUtils.