Updated the udp echo test and checked the return of the alter state function in pico_socket_connect