write watcher test