implemented HTTP server and associated tests