start http server in test and use requests to test it