Modify unit test for networkport