refactor HttpError Async tests