refactored send_task into a unit test.
first bug caught by unit testing yay.
Minor refarcor.

ping -> tcpecho.
Tests are run fom main.
removed interface num from list_netif.

It was not always properly initialized.