implemented HTTP server and associated tests

It would be much better practice to write a separate test function for each scenario. That way you can see which tests are failing and which are passing, and possibly pass information about failure in each case.