No need to print stack trace to the file when running tests (that actually generate errors on purpose).