Add integration test for the complete functionality of the dispatcher.