fixed mem leaks in NetworkInterfaceTest.cpp