Added backtrace in case of errors to test logs (copy/pasted necessary functions from ASDF)