fix a few bugs with enqueueRequest
add test for enqueue and cancel request
renamed req/res to httpReq/httpRes for clarity