special http object for testing purpose