Add stack trace to errors during test