Test DispatcherFactory