This allows having good stacktraces when the tests crash. (cherry picked from commit c4fa301b6b)
c4fa301b6b