Avoid an exception loop on callback error when headers have already been sent; send error trace in the body, since headers are limited in size
Fix test for firefox
Update local tests path