reimplement TaskDispatcher#dispatch spec
simplify TaskDispatcher#dispatch spec