Added unit tests for net_listen