(refactor) organizing the test by http request.