Added AST transform of tests to wrap callbacks in a try/catch. Improved ...

...logging.