Adding elements to a socket test

A socket test provides the flexibility to add close, send, and receive elements to the test.