added Testcases for NetworkInterface, fixed NetworkInterface implementation