Add tests for HttpSocket modifications