mock out os.unlink in TestMonitor