Add a new unit test for dispatch