Fixed a small bug in the SimpleHTTPSocket class and added a bunch of SimpleHTTPSocket tests

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>