Added test classes for the network API.
Added ping-delay detection on the Connection.