test case for CHttpServer

also the needed implementation code