Added some test code for asynchronous http request