Changed inetx and added a unit test