Unit Test for watcher.py