Refactoring inotify_add_watch for mock, correcting sometypos and preparing add_to_watch_list to be tested