Fix test_dispatcher errors in Visual Studio.

Some errors were left when compiling test_dispatcher.