Add IFileMonitor docs and fix its tests