test: better waiting
Fix: Regressions in refactor -- protect calls to publicly-visible methods.
     Restore onDocumentChanged callback.
Fix: Skip unit tests which need tre instead of producing errors or failures.
     Make requiresModule decorator work when skipping classes.
tests: better exceptions handling and printing
FileBrowser: fix memory management problem