Fixed typo in the dispatcher.
Updated the tests.