perhaps some progress?
don't say new Socket() unless you're about to send something!
made better test class