Improve SDK logging when a promise is rejected during tests. r=gozala
Tentative fix SDK tests.