changed way http server is set up in client_test