test MethodDispatcher.register