Tests for FileMonitor, issue #18