Added unit tests for net utils.