Added tests for wrapping of exceptions in processing and preprocessors