Updated DirectoryScanningMonitorTests.TestStartup to wait if the monitor is not ready yet