log request errors in test