network: tests for the connect function; renamed the send and receive functions to avoid name conflicts.