Create SocketAgent for testing; add some basic tests