Testing a socketstream web client