Add a test for wait(FileMonitor).