Added test code for http request