testing the callbacks for makeHttpRequest