added a helper function for recursively deleting files or directories
improved the test case to also test that we get delete events and processing actions when we delete files, parent directories or move parent or grand parent directories for the watcher