test dispatch in callback.