Add missing teardown_module functions

so that tested editors do not stack on top of each others
Add test for FileWatcherMode