Added test to WatchDir to check if it work both with directories and directly with files.