Fixed Fail NUnit Test cases

This is the fix for the NUnit test case fail
"Dynamo.Tests.UI.VisualizationManagerUITests.VisualizationInSyncWithPreviewUpstream"

The reason of this failing is because NUnit is not really work well with Dispatcher. I did seek the help from Ben and come up with this solution.