Bug 1083068 - Improve SDK logging when a promise is rejected during tests. r=gozala